package com.pactera.madp.cp.api.dto.taskpub;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @File name：com.pactera.madp.cp.api.dto.taskpub.TaskPubUpdateDto
 * @Create on：2022/5/11
 * @Author：tianq
 */
@Data
@Api(value = "TaskPubUpdateDto",tags = "任务发布修改输入类")
public class TaskPubUpdateDto {


    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空")
    private Integer id;

    @ApiModelProperty(value = "参与成员")
    private List<Integer> joinUser;

    @ApiModelProperty(value = "参与成员工号")
    private List<String> joinJobNo;

    @NotBlank(message = "任务标题不能为空")
    @ApiModelProperty(value = "任务标题")
    private String title;

    @ApiModelProperty(value = "链接")
    private String url;

    @NotNull(message = "任务标题不能为空")
    @ApiModelProperty(value = "目标数")
    private Integer goalCount;

    @NotNull(message = "任务类型不能为空")
    @ApiModelProperty(value = "任务类型 1-新增客户 2-产品推广 3-活动推广")
    private Integer taskType;

    //@NotNull(message = "红包配置不能为空")
    @ApiModelProperty(value = "是否配置红包")
    private Boolean enableWxredpack;

    @ApiModelProperty(value = "是否主动发送红包")
    private Boolean autoSendWxredpack;

    @ApiModelProperty(value = "单个红包金额(单位：分)")
    private Integer wxredpackAmount;

    @NotNull(message = "开始时间不能为空")
    @ApiModelProperty(value = "开始时间")
    private String beginTime;

    @NotNull(message = "结束时间不能为空")
    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "部门id列表")
    private List<Integer> deptIds;

}
